import {
    connect
} from 'react-redux'
import View from './Header'
import {
    actions as ACTIONS
} from '@/components/Login'


const mapStateToProps = state => {
    // console.log(state)
    return {
        isLogin: state.user.isLogin,
        userInfo: state.user.info
    }
}

const mapDispatchToProps = (dispatch) => {
    return {
        signOut() {
            dispatch(ACTIONS.signOut())
        }
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(View)